﻿using System;
using Microsoft.Phone.Controls;
using System.Windows.Controls;
using System.Windows.Media.Imaging;
using System.Windows.Data;
using AccountHelper.ViewModel;

namespace AccountHelper.View
{
    public partial class SettingView : PhoneApplicationPage
    {
        public SettingView()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/View/TestLab.xaml", UriKind.Relative));
        }

        private void tsAd_Checked(object sender, System.Windows.RoutedEventArgs e)
        {
            tsAd.Content = "已开启";

            //GlobalLoading.Instance.IsPlayAdv = true;//error use
            GlobalLoading.Instance.IsStartAdv = true;
        }

        private void tsAd_Unchecked(object sender, System.Windows.RoutedEventArgs e)
        {
            tsAd.Content = "已关闭";
            GlobalLoading.Instance.IsStartAdv = false;
        }

    }
}